<!-- 提示 -->
<div id="top-alert" class="top-alert-tips alert-error" style="display: none;">
  <a class="close" href="javascript:;"><b class="fa fa-times-circle"></b></a>
  <div class="alert-content"></div>
</div>
<!-- 导航条
================================================== -->
<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="wrap">

       <a class="brand" title="{:config('app.WEB_SITE_TITLE')}" href="{:U('home/index/main')}">
       		<img height="52" src="__STATIC__/base/images/logo.png"/>
       </a>
            <div class="top_nav">
                {if condition="is_login()"}
                    <ul class="nav" style="margin-right:0">


                        <li class="dropdown admin_nav">
                            <a href="#" class="dropdown-toggle login-nav" data-toggle="dropdown" style="">
                                <img class="admin_head url" src="{$myinfo.headimgurl}"/>
                                {$myinfo.nickname|getShort=4}<b class="pl_5 fa fa-sort-down"></b>
                            </a>

                            <ul class="dropdown-menu" style="display:none">
                               {if condition='$myinfo.is_audit == 1'}
                                <li><a href="{:U('home/User/profile')}">修改密码</a></li>
                                {/if}
                                <li><a href="{:U('home/User/logout')}">退出</a></li>
                            </ul>

                        </li>
                    </ul>
                {else/}
                    <ul class="nav" style="margin-right:0">
                        <li>
                            <a href="{:U('home/User/login')}">登录</a>
                        </li>
                        <li>
                            <a href="{:U('home/User/register')}">注册</a>
                        </li>
                        <li>
                            <a href="{:U('admin/index/index')}" style="padding-right:0">后台入口</a>
                        </li>
                    </ul>
                {/if}
            </div>
        </div>
</div>